#include <iostream>

template <unsigned N>
void print(int (&array)[N])
{
    printf("%d\n", N);
	for(auto & term: array)
		std::cout<<term<<std::endl;
}

void print2(int *array)
{
    //printf("%d\n", N);
    printf("%d\n", array[0]);
}


int main(int argc, char **argv)
{
	int array[10] = {1,3,2,4,6,5,8,9,0,7};
	print(array);
	print2(array);
	return 0;
}
